package chpt_04_lesson_01.log;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author Ping
 * @date 2023/3/15 10:57
 **/
public class FileLog implements Log {
    @Override
    public void write(String msg) {
        synchronized (this) {
            System.out.println("[FILE_LOG] " + sdf.format(new Date()) + " : " + msg);
        }
    }
}
